#include <gui/applicationpage_screen/ApplicationPageView.hpp>
#include <gui/applicationpage_screen/ApplicationPagePresenter.hpp>

ApplicationPagePresenter::ApplicationPagePresenter(ApplicationPageView& v)
    : view(v)
{

}
//
void ApplicationPagePresenter::activate()
{
		ApplicationPagePresenterState(true);	
}
//
void ApplicationPagePresenter::deactivate()
{
		ApplicationPagePresenterState(false);	
}
//ApplicationPagePresenter状态
void ApplicationPagePresenter::ApplicationPagePresenterState(bool enable)
{
		if(enable == true)
			model->ApplicationPageViewTask(true);
		else
			model->ApplicationPageViewTask(false);
}
//页面跳转
void ApplicationPagePresenter::AppPageChange(uint8_t newFiveKeyFunc)
{
		view.AppPageChange(newFiveKeyFunc);	
}